File: test

package info (click to toggle)
node-crc 4.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,344 kB
  • sloc: python: 3,073; xml: 632; javascript: 327; sh: 299; ansic: 227; makefile: 24
file content (19 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -e

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

cd $SCRIPT_DIR

for d in *
do
  if [ -d "$d" ]; then
    echo "Testing: $d"
    (
      cd $d
      npm install --no-progress 1>/dev/null
      npm install ../../../dist/$(cd ../../../dist) --no-progress --no-save 1>/dev/null
      npm test
    )
    echo "👍 PASSED"
  fi
done