Changes

Jump to: navigation, search

Wpkg tests

1,884 bytes added, 11:40, 17 August 2009
no edit summary
So I can have [http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/stable/1.1/wpkg.js?revision=86 wpkg-111.js], [http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/stable/1.1/wpkg.js?revision=98 wpkg-112RC9.js] etc. and test them using '''testall 111''' or '''testall 112RC9'''.
 
=== Directory structure ===
 
The test suite uses the following directory structure. After running one of the cmd files, you find the full
debug logs in '''logs''' folder and the results (installed packages, xmls from error runs) in '''results''' folder.
 
<source lang="bash">
|-- compare
| |-- test1_dependencies
| | |-- 1
| | | `-- wpkg.xml
| | |-- ...
| |-- test2_check_or
| | |-- ...
| |-- test3_cmdsetup
| | |-- ...
|-- logs
|-- packages
| |-- testsetup.exe
| |-- testsetup2.exe
| |-- wpkgtest
| | |-- wpkgtest-1.0.0.msi
| | `-- wpkgtest-1.1.0.msi
|-- results
|-- test1_dependencies
| |-- 1
| | |-- config.xml
| | |-- hosts.xml
| | |-- packages.xml
| | `-- profiles.xml
| |-- 2
| | |-- ...
| |-- ...
| `-- Checks.txt
|-- test2_check_or
| |-- 10
| | |-- config.xml
| | |-- hosts.xml
| | |-- packages.xml
| | `-- profiles.xml
| `-- Checks.txt
|-- test3_cmdsetup
| |-- 1
| |-- 2
| |-- ...
| `-- Check.txt
</source>
 
Within '''packages''' folder there are binaries for the installation tests, but most checks can be done using
creation/deletion of simple text files.
 
All test folder names start with "test", followed by a number, an underscore and the short description of the tests.
 
Within a test folder, the tests are numbered from 1 ... 99, where at least test number 99 must make sure, that all used test files / test packages are removed, so that the next test has a clean test machine.
 
In the "checks.txt" files should be a short description of each test:
 
[http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/wpkg-test/test1_dependencies/Checks.txt Test1: dependencies]
 
[http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/wpkg-test/test2_check_or/Checks.txt Test2: check_or]
 
[http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/wpkg-test/test3_cmdsetup/Check.txt Test3: cmdsetup]
66
edits

Navigation menu