2010-02-02から1日間の記事一覧
シェルスクリプトのユニットテストフレームワーク "shUnit2" を使ってみた - ablog のつづき。 実際に自分で作った bash スクリプトのユニットテストを実行してみた。最初のディレクトリ構成はこんなの。 $ su - oracle $ cd /home/oracle/scripts $ tree -p…
Oracle Database のデータをスキーマ単位で export する単純な bash スクリプトを作ってみた。 yoheia/ora_exp_dmp.sh at master · yoheia/yoheia · GitHub #!/bin/bash export LANG=C export NLS_LANG=American_America.JA16SJISTILDE BASE_DIR=$(cd $(dirn…
ないだろうと思いながらぐぐってみたら、 shUnit2 is a xUnit unit test framework for Bourne based shell scripts, and it is designed to work in a similar manner to JUnit, PyUnit, etc. If you have ever had the desire to write a unit test for a …