From: Alexis Laferrière Date: Mon, 5 Mar 2018 15:54:18 +0000 (-0500) Subject: tests: updates test for nitpm with new services X-Git-Url: http://nitlanguage.org tests: updates test for nitpm with new services Signed-off-by: Alexis Laferrière --- diff --git a/tests/nitpm.args b/tests/nitpm.args new file mode 100644 index 0000000..3d57c9e --- /dev/null +++ b/tests/nitpm.args @@ -0,0 +1,8 @@ +install https://gitlab.com/xymus/hello_nitpm.git +install hello_nitpm +upgrade hello_nitpm +install nitpm_test_versions=1.0 nitpm_test_versions=stable nitpm_test_imports +list +uninstall -f nitpm_test_versions=1.0 nitpm_test_versions=2.0 nitpm_test_versions=stable nitpm_test_imports nitpm_test_cycle hello_nitpm +list +uninstall . .. 0invalid _invalid a/../ diff --git a/tests/picnit.args b/tests/picnit.args deleted file mode 100644 index 35da5ee..0000000 --- a/tests/picnit.args +++ /dev/null @@ -1,4 +0,0 @@ -install https://gitlab.com/xymus/hello_picnit.git -install hello_picnit -list -upgrade hello_picnit diff --git a/tests/sav/nitpm.res b/tests/sav/nitpm.res new file mode 100644 index 0000000..c10cc0f --- /dev/null +++ b/tests/sav/nitpm.res @@ -0,0 +1,12 @@ +usage: nitpm [options] + +commands: + install Install packages by name, Git repository address or from the local package.ini + list List installed packages + upgrade Upgrade a package + uninstall Uninstall packages + help Show general help message or the help for a command + +options: + -h, --help Show help message + -v, --verbose Print more information diff --git a/tests/sav/nitpm_args2.res b/tests/sav/nitpm_args2.res new file mode 100644 index 0000000..a9f808e --- /dev/null +++ b/tests/sav/nitpm_args2.res @@ -0,0 +1 @@ +Package 'hello_nitpm' is already installed diff --git a/tests/sav/picnit_args4.res b/tests/sav/nitpm_args3.res similarity index 100% rename from tests/sav/picnit_args4.res rename to tests/sav/nitpm_args3.res diff --git a/tests/sav/nitpm_args5.res b/tests/sav/nitpm_args5.res new file mode 100644 index 0000000..822769d --- /dev/null +++ b/tests/sav/nitpm_args5.res @@ -0,0 +1,6 @@ +hello_nitpm example +nitpm_test_cycle +nitpm_test_imports +nitpm_test_versions=1.0 +nitpm_test_versions=2.0 +nitpm_test_versions=stable diff --git a/tests/sav/nitpm_args8.res b/tests/sav/nitpm_args8.res new file mode 100644 index 0000000..dc13ee1 --- /dev/null +++ b/tests/sav/nitpm_args8.res @@ -0,0 +1,5 @@ +Package name '.' is invalid +Package name '..' is invalid +Package name '0invalid' is invalid +Package name '_invalid' is invalid +Package name 'a/../' is invalid diff --git a/tests/sav/picnit.res b/tests/sav/picnit.res deleted file mode 100644 index 952c1c1..0000000 --- a/tests/sav/picnit.res +++ /dev/null @@ -1,12 +0,0 @@ -usage: picnit [options] - -commands: - install Install a package by its name or from a git-repository - list List installed packages - upgrade Upgrade a package - uninstall Uninstall a package - help Show general help message or the help for a command - -options: - --help, -h Show this help message - --verbose, -v Print more information diff --git a/tests/sav/picnit_args2.res b/tests/sav/picnit_args2.res deleted file mode 100644 index 0c6dd31..0000000 --- a/tests/sav/picnit_args2.res +++ /dev/null @@ -1 +0,0 @@ -Package 'hello_picnit' is already installed diff --git a/tests/sav/picnit_args3.res b/tests/sav/picnit_args3.res deleted file mode 100644 index 81eb1a2..0000000 --- a/tests/sav/picnit_args3.res +++ /dev/null @@ -1 +0,0 @@ -hello_picnit example diff --git a/tests/sav/picnit_args5.res b/tests/sav/picnit_args5.res deleted file mode 100644 index 2a7bfed..0000000 --- a/tests/sav/picnit_args5.res +++ /dev/null @@ -1 +0,0 @@ -Already up-to-date.