Displaying 20 results from an estimated 277 matches for "test_help".
Did you mean:
test_helper
2015 Mar 03
2
openssh-SNAP-20150304 issues
Damien Miller wrote:
>
> On Tue, 3 Mar 2015, The Doctor wrote:
>
>> regress/unittests/test_helper/test_helper.c: In function `test_data_file':
>> regress/unittests/test_helper/test_helper.c:177: warning: implicit declaration of function `strlcpy'
>> regress/unittests/test_helper/test_helper.c: At top level:
>> regress/unittests/test_helper/test_helper.c:196: parse er...
2015 Mar 24
5
[Bug 2371] New: make check fails when using --without-openssl on AIX
...;/opt/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/opt/libexec/ssh-keysign\"
-D_PATH_SSH_PKCS11_HELPER=\"/opt/libexec/ssh-pkcs11-helper\"
-D_PATH_SSH_PIDDIR=\"/var//etc\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c
regress/unittests/test_helper/fuzz.c -o
regress/unittests/test_helper/fuzz.o
/usr/bin/ar rv regress/unittests/test_helper/libtest_helper.a
regress/unittests/test_helper/test_helper.o
regress/unittests/test_helper/fuzz.o
ar: Creating an archive file
regress/unittests/test_helper/libtest_helper.a.
a - regress/unittests...
2015 Mar 24
5
[Bug 2371] New: make check fails when using --without-openssl on AIX
...;/opt/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/opt/libexec/ssh-keysign\"
-D_PATH_SSH_PKCS11_HELPER=\"/opt/libexec/ssh-pkcs11-helper\"
-D_PATH_SSH_PIDDIR=\"/var//etc\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c
regress/unittests/test_helper/fuzz.c -o
regress/unittests/test_helper/fuzz.o
/usr/bin/ar rv regress/unittests/test_helper/libtest_helper.a
regress/unittests/test_helper/test_helper.o
regress/unittests/test_helper/fuzz.o
ar: Creating an archive file
regress/unittests/test_helper/libtest_helper.a.
a - regress/unittests...
2015 Mar 03
2
openssh-SNAP-20150304 issues
Script started on Tue Mar 3 07:35:34 2015
doctor.nl2k.ab.ca//usr/source/openssh-SNAP-20150304$ make tests
[ -d `pwd`/regress ] || mkdir -p `pwd`/regress
[ -d `pwd`/regress/unittests ] || mkdir -p `pwd`/regress/unittests
[ -d `pwd`/regress/unittests/test_helper ] || mkdir -p `pwd`/regress/unittests/test_helper
[ -d `pwd`/regress/unittests/sshbuf ] || mkdir -p `pwd`/regress/unittests/sshbuf
[ -d `pwd`/regress/unittests/sshkey ] || mkdir -p `pwd`/regress/unittests/sshkey
[ -d `pwd`/regress/unittests/bitmap ] || mkdir -p `pwd`/regress/unittests/bitmap...
2015 Jun 25
3
Call for testing: OpenSSH 6.9
On Thu, 25 Jun 2015, Michael Felt wrote:
> Just running a standard make, and then a make install to a packaging
> directory. It seems to be complaining about missing keys - not sure yet if
> this is a show stopper
For packaging you want the install-nokeys rule not install.
--
Tim Rice Multitalents
tim at multitalents.net
2006 Aug 11
5
Unit tests - NilClass problem
Hi!
Yesterday I started to write my unit tests for the fist time using
rails. I''m using this method:
http://blog.codahale.com/2005/12/23/a-rails-howto-simplify-your-unit-tests/
My customer_test.rb looks like this:
require File.dirname(__FILE__) + ''/../test_helper''
class CustomerTest < Test::Unit::TestCase
fixtures :customers
# Replace this with your real tests.
def test_create
test_creation_of :model => Customer,
:record => @customer,
:fixture => @first,
:attributes...
2009 May 14
6
Generated test files and bad require 'test_helper'
Why do the generated test files have: require ''test_helper''
It cannot obviously find the file because it''s located in a
subdirectory. That''s annoying.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 16
7
Problem running unit tests
...just ignored the problem and kept developing,
but would like to add proper testing from here on out.
Currently when I type rake in my application directory, it attempts to load
my unit tests (all generated files with single default assertion), but
immediately fails with the error:
./test/unit/../test_helper.rb:18: undefined method
''use_transactional_fixtures=''
I read up on transactional_fixtures and testing in general and also searched
this list and in Google, but haven''t been able to find any reference to this
problem. It is probably something stupid simple, but I am at...
2016 Jun 07
0
[PATCH 2/2] ruby: tests: Give each test class and method a unique name.
..._rhbz1046509.rb | 4 ++--
14 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/ruby/t/tc_010_load.rb b/ruby/t/tc_010_load.rb
index 2ec0314..06922e1 100644
--- a/ruby/t/tc_010_load.rb
+++ b/ruby/t/tc_010_load.rb
@@ -17,7 +17,7 @@
require File::join(File::dirname(__FILE__), 'test_helper')
-class TestLoad < MiniTest::Unit::TestCase
- def test_load
+class Test010Load < MiniTest::Unit::TestCase
+ def test_010_load
end
end
diff --git a/ruby/t/tc_020_create.rb b/ruby/t/tc_020_create.rb
index a2a01a1..251512b 100644
--- a/ruby/t/tc_020_create.rb
+++ b/ruby/t/tc_020_c...
2016 Jun 07
3
[PATCH 1/2] ruby: Print exceptions thrown by event callbacks.
---
generator/ruby.ml | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/generator/ruby.ml b/generator/ruby.ml
index 97ccfdc..0f71ccc 100644
--- a/generator/ruby.ml
+++ b/generator/ruby.ml
@@ -404,15 +404,17 @@ event_callback_wrapper_wrapper (VALUE argvv)
return Qnil;
}
+/* Callbacks aren't supposed to throw exceptions. We just print the
+ * exception on
2009 Apr 06
3
After Rails 2.3.2 upgrade: superclass mismatch for class TestCase (TypeError)
...3.2. Now when I run rake
test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass
mismatch for class TestCase (TypeError)
I generated a new test app and all tests run OK.
For the upgrade I ran rake:update and renamed the class in test_helper
to ActiveSupport::TestCase. Also renamed the classes in all unit tests
and to inherit from ActiveSupport::TestCase and in functional tests to
inherit from ActionController::TestCase.
I still could not fix it this error. I compared line by line the
config files and the test_helper.rb with a brand...
2007 Jan 23
2
SslRequirements plugin and mocha
...lib/active_support/dependencies.rb:443:in
`require_dependency''
... 12 levels...
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/initializer.rb:43:in
`run''
from /Users/zackchandler/dev/shasta/config/environment.rb:13
from ./test/functional/../test_helper.rb:2
from test/functional/calendar_controller_test.rb:1
Thanks,
Zack
2018 Nov 19
2
[PATCH] openssl-compat: Test for OpenSSL_add_all_algorithms before using.
OpenSSL 1.1.0 has deprecated this function.
---
configure.ac | 1 +
openbsd-compat/openssl-compat.c | 2 ++
openbsd-compat/openssl-compat.h | 4 ++++
3 files changed, 7 insertions(+)
diff --git a/configure.ac b/configure.ac
index 3f7fe2cd..db2aade8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2710,6 +2710,7 @@ if test "x$openssl" = "xyes" ; then
])
2014 Aug 26
1
Call for testing: OpenSSH 6.7
Good news/Bad News
The test race in RHEL 3.4 seems to be gone ... but another ec.h failure ...
Using http://www.mindrot.org/openssh_snap/openssh-SNAP-20140827.tar.gz
OS Build_Target CC
OpenSSL BUILD TEST
============== =========================== ================
============= ====== =================
*RHEL 3.4 i386-redhat-linux gcc
2016 Feb 17
3
Call for testing: OpenSSH 7.2
On Tue, 16 Feb 2016, Hisashi T Fujinaka wrote:
> On Wed, 17 Feb 2016, Damien Miller wrote:
>
> > > Core was generated by `test_sshkey'.
> > > Program terminated with signal SIGSEGV, Segmentation fault.
> > > #0 0x000000000041273e in cert_parse (key=0x7f7ff7b120c0,
> > > certbuf=0x7f7ff7b16200, b=0x7f7ff7b161b0) at sshkey.c:1896
> > > 1896
2006 Jul 11
0
better way to include helpers into application controller/test_helper?
Right now, I have the following in my application controller - and a
simliar version is duplicated in test_helper. There must be a better
way to include common functionality like this that gets used across
layers? Maybe at the very least a way to include it at the class
level and instance level with one line?
# provide access to text helper at class level
def self.text_helper
Helper.instance
end...
2005 Nov 19
1
How I provide a session object to Functional Tests?
...here he talks about testing
controllers [ functional tests ].
First he shows a method, test_login_with_valid_user, which tests
that it''s possible to login with a valid user/password combo.
Then, he talks about extracting the code he just wrote and placing it
into a login method inside of test_helper.rb
Once the method is there, he can re-use the login method in later
functional tests
of the LoginController class.
So, the discussion is easy to follow and I understand it.
My question:
Suppose I want to test other controllers besides the LoginController.
How do I make use of login in test_he...
2015 Mar 24
12
[Bug 2370] New: make fails with "rmd160.c", line 35.10: 1506-296 (S) #include file <endian.h> not found. when using --without-openssl on AIX
https://bugzilla.mindrot.org/show_bug.cgi?id=2370
Bug ID: 2370
Summary: make fails with "rmd160.c", line 35.10: 1506-296 (S)
#include file <endian.h> not found. when using
--without-openssl on AIX
Product: Portable OpenSSH
Version: 6.9p1
Hardware: Other
OS: AIX
2011 Feb 06
2
Controller Testing + Devise = boom (undefined @controller, request)
...backtrace
NoMethodError:
undefined method `request'' for nil:NilClass
#
/Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/whiny_nil.rb:48:in
`method_missing''
#
/Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/devise-1.1.5/lib/devise/test_helpers.rb:20:in
`initialize''
#
/Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/devise-1.1.5/lib/devise/test_helpers.rb:60:in
`new''
#
/Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/devise-1.1.5/lib/devise/test_helpers.rb:60:in
`warden''
# /Users/peter/.rvm/gems/ruby-[/c...
2016 Jan 19
2
OpenSSH portability & buildsystem fixes
....o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS)
$(MANPAGES): $(MANPAGES_IN)
if test "$(MANTYPE)" = "cat"; then \
@@ -456,7 +455,7 @@ UNITTESTS_TEST_SSHBUF_OBJS=\
regress/unittests/sshbuf/test_sshbuf$(EXEEXT): ${UNITTESTS_TEST_SSHBUF_OBJS} \
regress/unittests/test_helper/libtest_helper.a libssh.a
- $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHBUF_OBJS) \
+ $(CC) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHBUF_OBJS) \
regress/unittests/test_helper/libtest_helper.a \
-lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
@@ -469,7 +468,7 @@ UNITTESTS_TEST_SSHKE...