-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathruntest.sh
executable file
·46 lines (40 loc) · 1.44 KB
/
runtest.sh
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
#!/bin/sh
# Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material
# is made available to anyone wishing to use, modify, copy, or
# redistribute it subject to the terms and conditions of the GNU General
# Public License v.2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Author: <Your Name>
#. /usr/bin/rhts-environment.sh
#. /usr/lib/beakerlib/beakerlib.sh
PACKAGE="file"
SLEEP_TIME="1234567890123456789012345678901234567890123456789012345678"
#rlJournalStart
# rlPhaseStartSetup
# rlAssertRpm ${PACKAGE}
# rlRun "ulimit -c unlimited"
# rlServiceStop abrtd
# rlPhaseEnd
# rlPhaseStartTest
# this test tests one file at time
for f in `find db/ -type f |grep -v ".json$"`; do
python test-file.py $f
done
# this tests all files in 4 threads and is much more faster
# rlRun "python fast-regression-test.py"
# rlPhaseEnd
# rlPhaseStartCleanup
# rlRun "rm -f core.*"
# rlServiceRestore abrtd
# rlRun "ulimit -c 0"
# rlPhaseEnd
#rlJournalPrintText
#rlJournalEnd