3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-01-09 04:18:59 +00:00

Merge pull request #5516 from rocallahan/limit-threads

Limit thread usage in tests
This commit is contained in:
Emil J 2025-12-10 13:45:07 +01:00 committed by GitHub
commit e08e9119ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 46 additions and 5 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e
for x in *.ys; do
echo "Running $x.."

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
OPTIND=1
seed="" # default to no seed specified

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e
for x in *.ys; do
echo "Running $x.."

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
# run this test many times:
# MAKE="make -j8" time bash -c 'for ((i=0; i<100; i++)); do echo "-- $i --"; bash run-test.sh || exit 1; done'

1
tests/common-env.sh Normal file
View file

@ -0,0 +1 @@
export YOSYS_MAX_THREADS=4

View file

@ -1,4 +1,5 @@
#!/bin/bash
source ../common-env.sh
set -ex

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -ex

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
# run this test many times:
# time bash -c 'for ((i=0; i<100; i++)); do echo "-- $i --"; bash run-test.sh || exit 1; done'

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

View file

@ -9,7 +9,7 @@ generate_target() {
echo "all: $target_name"
echo ".PHONY: $target_name"
echo "$target_name:"
printf "\t@%s\n" "$test_command"
printf "\t@YOSYS_MAX_THREADS=4 %s\n" "$test_command"
printf "\t@echo 'Passed %s'\n" "$target_name"
}

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
OPTIND=1
seed="" # default to no seed specified

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -eo pipefail
for x in *.lib; do

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -eu
OPTIND=1

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
# run this test many times:
# time bash -c 'for ((i=0; i<100; i++)); do echo "-- $i --"; bash run-test.sh || exit 1; done'

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e
for x in *.ys; do
echo "Running $x.."

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e
for x in *.ys; do
echo "Running $x.."

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e
for x in *.ys; do
echo "Running $x.."

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e
for x in *.ys; do
echo "Running $x.."

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
# run this test many times:
# time bash -c 'for ((i=0; i<100; i++)); do echo "-- $i --"; bash run-test.sh || exit 1; done'

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
OPTIND=1
seed="" # default to no seed specified

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
OPTIND=1
seed="" # default to no seed specified

View file

@ -1,4 +1,5 @@
#/bin/bash -e
source ../common-env.sh
./runone.sh svinterface1
./runone.sh svinterface_at_top

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
source ../common-env.sh
set -e
python3 generate.py $@