~ubuntu-branches/ubuntu/wily/fwts/wily

« back to all changes in this revision

Viewing changes to fwts-test/arg-show-progress-dialog-0001/test-0001.sh

  • Committer: Package Import Robot
  • Author(s): Ivan Hu, Colin Ian King, Keng-Yu Lin
  • Date: 2014-06-18 10:20:44 UTC
  • mfrom: (34.2.17)
  • Revision ID: package-import@ubuntu.com-20140618102044-njbyt477zf2kqh59
Tags: 14.06.00-0ubuntu0
[Colin Ian King]
* lib: fwts_framework: change fwts-live progress feedback (LP: #1321664)
* cpu: cpufreq: add more granularity to progress feedback
* acpi: fan: add more granularity to progress feedback
* acpi: acpidump: remove duplicate consts
* live-image: save various system and firmware data at end of test
  (LP: #1322543)
* cpu: cpufreq: add more precision to GHz CPU frequency information
* cpu: cpufreq: print MHz as float, remove erroneous rounding
* cpu: cpufreq: show Turbo Boost with top _PSS value
* cpu: cpufreq: sort frequencies using almost equal comparison (LP: #1322531)
* acpica: update to version 20140424 (LP: #1312351)
* Add support for ACPI 1.0 GUID
* live-image: Add UEFI tests to the run all batch tests menu item
  (LP: #1322545)
* fwts-test: arg-show-progress-dialog-0001: fix armhf failures
* fwts-test: arg-show-progress-dialog-0001: fix armhf failures, for test-0002

[Keng-Yu Lin]
* debian: add watch file
* fwts-test: arg-show-progress-dialog: sync with fwts

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
TEST="Test --show-progress-dialog option"
4
4
NAME=test-0001.sh
5
5
TMPLOG=$TMP/progress.log.$$
6
 
 
7
 
$FWTS -w 80 --show-progress-dialog -j $FWTSTESTDIR/../data --klog=$FWTSTESTDIR/arg-show-progress-dialog-0001/klog.txt oops klog > $TMPLOG
8
 
diff $TMPLOG $FWTSTESTDIR/arg-show-progress-dialog-0001/progress-0001.log >> $FAILURE_LOG
 
6
TMPLOG_ORIG=$TMP/progress-0001.log.$$
 
7
 
 
8
#
 
9
#  Normalise % progress and seconds to run so it works OK
 
10
#  with different progress roundings and test durations on
 
11
#  different architectures.
 
12
#
 
13
fixup()
 
14
{
 
15
        sed s'X[0-9]*\.[0-9]*%X00.00%X' | sed s'X[0-9]* secondsX0 secondsX'
 
16
}
 
17
 
 
18
$FWTS -w 80 --show-progress-dialog -j $FWTSTESTDIR/../data --klog=$FWTSTESTDIR/arg-show-progress-dialog-0001/klog.txt oops klog | fixup > $TMPLOG
 
19
fixup < $FWTSTESTDIR/arg-show-progress-dialog-0001/progress-0001.log > $TMPLOG_ORIG
 
20
diff $TMPLOG $TMPLOG_ORIG >> $FAILURE_LOG
9
21
ret=$?
10
22
if [ $ret -eq 0 ]; then 
11
23
        echo PASSED: $TEST, $NAME
13
25
        echo FAILED: $TEST, $NAME
14
26
fi
15
27
 
16
 
rm $TMPLOG
 
28
rm $TMPLOG $TMPLOG_ORIG
17
29
exit $ret