Skip to content

Commit

Permalink
#0: Correct #!/bin script headers (#12582)
Browse files Browse the repository at this point in the history
Fix malformed shebangs, and a few other errors
  • Loading branch information
nathan-TT authored Sep 12, 2024
1 parent 96bb5e4 commit f9a17e6
Show file tree
Hide file tree
Showing 30 changed files with 40 additions and 50 deletions.
2 changes: 1 addition & 1 deletion tests/scripts/run_cpp_fd2_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

set -eo pipefail

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/run_cpp_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

set -eo pipefail

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/run_models.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

##############################################################################
##############################################################################
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/run_moreh_microbenchmark.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# set -x
set -x
set -eo pipefail

run_profiling_test() {
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/run_performance.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#/bin/bash
#!/bin/bash

# set -eo pipefail
set -eo pipefail

if [[ -z "$TT_METAL_HOME" ]]; then
echo "Must provide TT_METAL_HOME in environment" 1>&2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

set -eo pipefail

Expand All @@ -23,4 +23,3 @@ export PYTHONPATH=$TT_METAL_HOME
./tests/scripts/run_python_api_unit_tests.sh

./tests/scripts/run_cpp_unit_tests.sh

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

set -eo pipefail

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/run_python_api_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

set -eo pipefail

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/run_python_model_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

set -eo pipefail

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/run_tools_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

set -eo pipefail

Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/single_card/nightly/run_common_models.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#/bin/bash
#!/bin/bash

# set -eo pipefail
set -eo pipefail

if [[ -z "$TT_METAL_HOME" ]]; then
echo "Must provide TT_METAL_HOME in environment" 1>&2
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/single_card/nightly/run_gs_only.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#/bin/bash
#!/bin/bash

# set -eo pipefail
set -eo pipefail

if [[ -z "$TT_METAL_HOME" ]]; then
echo "Must provide TT_METAL_HOME in environment" 1>&2
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/single_card/nightly/run_ttnn.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#/bin/bash
#!/bin/bash

# set -eo pipefail
set -eo pipefail

if [[ -z "$TT_METAL_HOME" ]]; then
echo "Must provide TT_METAL_HOME in environment" 1>&2
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/single_card/nightly/run_wh_b0_only.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#/bin/bash
#!/bin/bash

# set -eo pipefail
set -eo pipefail

if [[ -z "$TT_METAL_HOME" ]]; then
echo "Must provide TT_METAL_HOME in environment" 1>&2
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/single_card/nightly/run_wh_b0_unstable.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#/bin/bash
#!/bin/bash

# set -eo pipefail
set -eo pipefail

if [[ -z "$TT_METAL_HOME" ]]; then
echo "Must provide TT_METAL_HOME in environment" 1>&2
Expand Down
5 changes: 2 additions & 3 deletions tests/scripts/t3000/run_t3000_demo_tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#/bin/bash
# set -eo pipefail
#!/bin/bash
set -eo pipefail

run_t3000_falcon40b_tests() {
# Record the start time
Expand Down
5 changes: 2 additions & 3 deletions tests/scripts/t3000/run_t3000_frequent_tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#/bin/bash
# set -eo pipefail
#!/bin/bash
set -eo pipefail

run_t3000_ethernet_tests() {
# Record the start time
Expand Down
5 changes: 2 additions & 3 deletions tests/scripts/t3000/run_t3000_model_perf_tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#/bin/bash
# set -eo pipefail
#!/bin/bash
set -eo pipefail

run_t3000_falcon7b_tests() {
# Record the start time
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/t3000/run_t3000_nightly_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

run_t3000_ccl_tests() {
# Record the start time
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/t3000/run_t3000_perplexity_tests.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

#/bin/bash
#!/bin/bash

run_t3000_perplexity_tests() {
# Record the start time
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/t3000/run_t3000_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# set -eo pipefail
set -eo pipefail

run_t3000_ttmetal_tests() {
# Record the start time
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/tg/run_tg_demo_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

run_tg_tests() {
fail=0
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/tg/run_tg_frequent_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

run_tg_tests() {
# Add tests here
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/tg/run_tg_model_perf_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

run_tg_llm_tests() {
# Merge all the generated reports
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/tg/run_tg_nightly_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

run_tg_llama3_70b_tests() {
# Record the start time
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/tg/run_tg_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

#/bin/bash
#!/bin/bash
set -eo pipefail

run_tg_tests() {
Expand Down
5 changes: 2 additions & 3 deletions tests/scripts/tgg/run_tgg_demo_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

#/bin/bash
#!/bin/bash
set -eo pipefail

run_tgg_tests() {
Expand All @@ -25,4 +24,4 @@ main() {
run_tgg_tests
}

main "$@"
main "$@"
3 changes: 1 addition & 2 deletions tests/scripts/tgg/run_tgg_frequent_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

#/bin/bash
#!/bin/bash
set -eo pipefail

run_tgg_tests() {
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/tgg/run_tgg_model_perf_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

#/bin/bash
#!/bin/bash
set -eo pipefail

run_tgg_llm_tests() {
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/tgg/run_tgg_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

#/bin/bash
#!/bin/bash
set -eo pipefail

run_tgg_tests() {
Expand Down

0 comments on commit f9a17e6

Please sign in to comment.