source: dispositivos_moviles/jdigidoc-3.7/jdigidoc/tests/test-loop.sh @ 95d372e

Last change on this file since 95d372e was 62396ee, checked in by Antonio Araujo Brett <aaraujo@…>, 11 years ago

Códigos fuentes de la biblioteca jdigidoc usada en Android.

  • Property mode set to 100644
File size: 452 bytes
Line 
1#!/bin/bash
2SIGNAL_FILE=/tmp/build-complete.known
3PREV_SIGNAL_FILE=/tmp/build-complete.known.jdigidoc
4
5echo "Starting loop, waiting for 'build complete' signal"
6while true
7do
8  sleep 1
9  if [ ! -f $SIGNAL_FILE ]; then continue; fi
10  if [ ! $SIGNAL_FILE -nt $PREV_SIGNAL_FILE ]; then continue; fi
11  cp $SIGNAL_FILE $PREV_SIGNAL_FILE
12  echo "Got 'build complete' signal, running tests"
13  ./run-tests.sh
14  echo "Waiting for 'build complete' signal"
15done
16
Note: See TracBrowser for help on using the repository browser.