Skip to content

Commit

Permalink
Add tests for mysql scripts and fix existing test script
Browse files Browse the repository at this point in the history
  • Loading branch information
schneider-felix committed Mar 27, 2024
1 parent 76021cb commit 6c88af5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/mysql/.test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
set -e

wait_for_port 3306

# Wait for configure-mysql to finish.
sleep 5

# through unix_socket
mysql -e 'SELECT VERSION()'

# through tcp/ip
mysql -h 127.0.0.1 -udb -pdb -e 'SELECT VERSION()'
mysql -h "127.0.0.1" -udb -pdb -e 'SELECT VERSION()'

ping-mysql
4 changes: 4 additions & 0 deletions tests/mysql/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
};
};
};

scripts.ping-mysql.exec = ''
$DEVENV_PROFILE/bin/mysqladmin ping
'';
}

0 comments on commit 6c88af5

Please sign in to comment.