search for: add_test

Displaying 7 results from an estimated 7 matches for "add_test".

Did you mean: dd_test
2018 Jun 05
3
Unit Tests CMake configuration
Hi llvm-dev, Does anybody know why we're not using the `add_test` feature in CMake [0] for unit tests? In particular, compiler-rt (sanitizers and xray) has a number of unit tests which could really just be built as normal binaries and invoked appropriately. If we're avoiding ctest [1], then for the unit tests in compiler-rt I'd like to see whether just...
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...new_node_file=$WORKDIR/$nodename-new.xml if [ -n "${nodename}" ]; then local xml=$(sudo virsh dumpxml $nodename | sed "s/boot dev='"${old_device}"'/boot dev='"${new_device}"'/") @@ -471,7 +472,7 @@ substitute_boot_device () { add_test "test_stateless_pxe" test_stateless_pxe () { local nodename="${vm_prefix}-stateless-pxe" - local workdir=$(mktemp -d) + local workdir=$WORKDIR start_networking $nodename $IFACE_NAME false true $workdir @@ -513,7 +514,7 @@ exit 3' add_test "test_sta...
2009 May 19
1
[PATCH node-image] Fixing the autotest script.
...masq-${nodename}.log + --log-queries + --log-dhcp + --pid-file=${pidfile}" if [ -n "$macaddress" ]; then dns_startup="${dns_startup} --dhcp-host=${macaddress},${NODE_ADDRESS}" fi @@ -407,8 +406,7 @@ tests=''; testcount=0; # $1 - test name add_test () { - tests[$testcount]=$1 - testcount=$testcount+1 + tests="${tests} $1" } # $1 - node name @@ -470,19 +468,20 @@ substitute_boot_device () { fi } -add_test "test_stateless_pxe_with_nohd" -test_stateless_pxe_with_nohd () { - local nodename="${vm_pr...
2013 Dec 17
2
Setting up a lustre zfs dual mgs/mdt over tcp - help requested
...the following script: # cat lnet-selftest.sh #!/bin/bash export LST_SESSION=$$ lst new_session read/write lst add_group servers 10.0.0.[22,23]@tcp lst add_group readers 10.0.0.[22,23]@tcp lst add_group writers 10.0.0.[22,23]@tcp lst add_batch bulk_rw lst add_test --batch bulk_rw --from readers --to servers \ brw read check=simple size=1M lst add_test --batch bulk_rw --from writers --to servers \ brw write check=full size=4K # start running lst run bulk_rw # display server stats for 30 seconds lst stat servers & sle...
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...me > /dev/null 2>&1 + fi + if $undefine; then + sudo virsh undefine $nodename > /dev/null 2>&1 + fi + fi + fi +} + +# for each test created, add it to the follow array: +tests=''; testcount=0; + +# $1 - test name +add_test () { + tests="${tests} $1" +} + +# $1 - node name +start_virt_viewer () { + local nodename=$1 + + sudo virt-viewer $nodename > /dev/null 2>&1& +} + +# $1 - the node's name +# $2 - kernel arguments +# $3 - working directory +boot_with_pxe () { + local nodename...
2018 Jan 02
8
[Bug 1209] New: Replace 'netstat' with 'ss'
...I suggest replacing it with 'ss' command in tests/runtest.sh file. I'm adding a simple patch: Index: ipset-6.34/tests/runtest.sh =================================================================== --- ipset-6.34.orig/tests/runtest.sh +++ ipset-6.34/tests/runtest.sh @@ -45,7 +45,7 @@ add_tests() { `$cmd -t filter | grep ACCEPT | wc -l` -eq 3 ]; then if [ -z "`which sendip`" ]; then echo "sendip utility is missig: skipping $1 match and target tests" - elif [ -n "`netstat --protocol $1 -n | grep $2`" ]; th...
2005 Nov 16
19
Concerns over Rails' handling of tests
Sorry if this comes across as a bunch of disjointed thoughts...I''m just trying to put my thoughts down and I''d like to know what other people''s opinions on the subject are. I''ve been working with Rails for 3 or 4 months now and I''m constantly trying to look at ways of improving my testing techniques, especially when it comes to TDD. I have a few