summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
-rw-r--r--java/CMakeLists.txt2
-rw-r--r--unix/xserver/hw/vnc/xvnc.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a9a7ce1..c8916df8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,10 +21,10 @@ include(CheckCSourceRuns)
include(CMakeMacroLibtoolFile)
project(tigervnc)
-set(VERSION 1.9.80)
+set(VERSION 1.9.90)
# The RC version must always be four comma-separated numbers
-set(RCVERSION 1,9,80,0)
+set(RCVERSION 1,9,90,0)
# Installation paths
set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin")
diff --git a/java/CMakeLists.txt b/java/CMakeLists.txt
index da24dcfa..e6482a6e 100644
--- a/java/CMakeLists.txt
+++ b/java/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.11)
project(tigervnc-java Java)
if(NOT VERSION)
- set(VERSION 1.9.80)
+ set(VERSION 1.9.90)
endif()
find_package(Java)
diff --git a/unix/xserver/hw/vnc/xvnc.c b/unix/xserver/hw/vnc/xvnc.c
index a42a6c1a..0f3a21a6 100644
--- a/unix/xserver/hw/vnc/xvnc.c
+++ b/unix/xserver/hw/vnc/xvnc.c
@@ -87,7 +87,7 @@ from the X Consortium.
#include "version-config.h"
#include "site.h"
-#define XVNCVERSION "TigerVNC 1.9.80"
+#define XVNCVERSION "TigerVNC 1.9.90"
#define XVNCCOPYRIGHT ("Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)\n" \
"See https://www.tigervnc.org for information on TigerVNC.\n")
> Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/App/AppStore/Version/VersionParserTest.php
blob: 3ccc68bc076c66c4cbd05d54649e5b631d73873e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php

/**
 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

namespace Test\App\AppStore\Version;

use OC\App\AppStore\Version\Version;
use OC\App\AppStore\Version\VersionParser;
use Test\TestCase;

class VersionParserTest extends TestCase {
	/** @var VersionParser */
	private $versionParser;

	protected function setUp(): void {
		parent::setUp();
		$this->versionParser = new VersionParser();
	}

	/**
	 * @return array
	 */
	public static function versionProvider(): array {
		return [
			[
				'*',
				new Version('', ''),
			],
			[
				'<=8.1.2',
				new Version('', '8.1.2'),
			],
			[
				'<=9',
				new Version('', '9'),
			],
			[
				'>=9.3.2',
				new Version('9.3.2', ''),
			],
			[
				'>=8.1.2 <=9.3.2',
				new Version('8.1.2', '9.3.2'),
			],
			[
				'>=8.2 <=9.1',
				new Version('8.2', '9.1'),
			],
			[
				'>=9 <=11',
				new Version('9', '11'),
			],
		];
	}

	/**
	 *
	 * @param string $input
	 * @param Version $expected
	 */
	#[\PHPUnit\Framework\Attributes\DataProvider('versionProvider')]
	public function testGetVersion($input,
		Version $expected): void {
		$this->assertEquals($expected, $this->versionParser->getVersion($input));
	}


	public function testGetVersionException(): void {
		$this->expectException(\Exception::class);
		$this->expectExceptionMessage('Version cannot be parsed: BogusVersion');

		$this->versionParser->getVersion('BogusVersion');
	}


	public function testGetVersionExceptionWithMultiple(): void {
		$this->expectException(\Exception::class);
		$this->expectExceptionMessage('Version cannot be parsed: >=8.2 <=9.1a');

		$this->versionParser->getVersion('>=8.2 <=9.1a');
	}
}