summaryrefslogtreecommitdiffstats
path: root/tests/auto/selftests/updateBaselines.sh
blob: a0f22e666d96b0b17bbc4d3b6432d81930cf8339 (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
# Be *really* sure that your fix is right, before running this script.

tests="                 \
       cmptest          \
       cmptest          \
       cmptest          \
       datatable        \
       datetime         \
       expectfail       \
       expectfail       \
       globaldata       \
       globaldata       \
       maxwarnings      \
       multiexec        \
       singleskip       \
       qexecstringlist  \
       differentexec    \
       skip             \
       skip             \
       skipglobal       \
       sleep            \
       strcmp           \
       subtest          \
       warnings"

for test in $tests; do
    echo "Updating $test"
    cd $test
    baseline="../expected_"$test".txt"
    p4 edit $baseline
    ./tst_$test > ../expected_"$test".txt
    p4 revert -a $baseline
    cd .. 
done