소스 검색

add test script to sanity check pljava-jsword is working

Pi 1 년 전
부모
커밋
34e1e703bf
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      test-pljava-jsword.sh

+ 6 - 0
test-pljava-jsword.sh

@@ -0,0 +1,6 @@
+#!/bin/bash
+output=$(psql -d pgdb -1 -t -A <<EOF
+SELECT * FROM getText('KJV', 'Gen 1:1');
+EOF
+)
+[ "${output}" == "In the beginning God created the heaven and the earth." ]